﻿namespace CSharoPro._10._27;

public class Student
{
    private int id; //字段 field
    private string name;

    public string Name
    {
        get => name;
        set => name = value ?? throw new ArgumentNullException(nameof(value));
    }

    //属性 property
    public int Id
    {
        get => id;
        //get { return Id; }
        set => id = value;
    }
}